import request from '@/utils/request'
// 获取所有角色列表
export const getRoleList = (params) => request.get('/sys/role', { params })
// 获取删除角色
export const delRole = (id) => request.delete(`/company/department/${id}`)
// 新增角色
export const addRole = data => request.post(`/sys/role`, data)
// 获取角色详情
export const getRoleDetail = id => request.get(`/sys/role/${id}`)
// 更新角色
export const updateRole = data => request.put(`/sys/role/${data.id}`, data)
// 更新角色
export const getCompanyInfo = id => request.get(`/company/${id}`)
